package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.qo.PageResult;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRoleService {
    void save(Role role, Long[] ids);

    void delete(Long id);

    void update(Role role, Long[] ids);

    Role selectOne(Long id);

    List<Role> listAll();

    List<Role> queryForData(QueryObject qo);

    //int queryForCount(QueryObject qo);

    PageInfo<Role> query(QueryObject qo);

    List<Role> otherSqlByRoleId(Long id);
}
